package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 客户信息
 * </p>
 *
 * @author min
 * @since 2022-07-28
 */
@Data
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    
    private Long id;

    /**
     * school_id
     */
    
    private Long schoolId;

    /**
     * team_id
     */
    
    private Long teamId;

    /**
     * 拿号码老师id
     */
    
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    /**
     * 客户姓名
     */
    private String name;

    /**
     * 电话
     */
    private String phone;

    /**
     * 手机类型【1-母亲手机；2-父亲手机；3-学生手机】
     */
    private Integer relation;

    /**
     * 年级
     */
    private String gradeName;

    /**
     * 性别(1男，2女)
     */
    private Integer sex;

    /**
     * 成交金额
     */
    
    private Long cjMoney;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

}
